package com.ruoyi.blog.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 博客分类业务对象 blog_category
 *
 * @author ruoyi
 * @date 2023-10-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogCategoryBo extends TreeEntity<BlogCategoryBo> {

    /**
     * 博客分类id
     */
    @NotNull(message = "博客分类id不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 博客分类名称
     */
    @NotBlank(message = "博客分类名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 博客分类描述
     */
    @NotBlank(message = "博客分类描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryInfo;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderBy;

    /**
     * 是否显示
     */
    @NotNull(message = "是否显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isShow;


}
